package com.ihealthway.all.groupbuy.vo;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

import java.util.Date;

/**
  * Bean class for winner log design
 * @author 凡梦星尘(elkan1788@gmail.com)
 */
@Table("gb_winner_log")
public class WinnerLog {

    @Id
    @Column("win_id")
    private Integer winId;
    @Column("goods_id")
    private Integer goodsId;
    @One(target = Goods.class, field = "goodsId", key = "goodsId")
    private Goods goods;
    @Column("u_id")
    private Integer userId;
    @One(target = UserInfo.class, field = "userId", key = "userId")
    private UserInfo user;
    @Column("rwd_id")
    private Integer rewardId;
    @One(target = Reward.class, field = "rewardId", key = "rewardId")
    private Reward reward;
    @Column("win_time")
    private Date winTime;
    @Column("share_cnt")
    private Integer shareCount;
    @Column("winner_name")
    private String winnerName;
    @Column("winner_phone")
    private String winnerPhone;
    @Column("winner_province")
    private String winnerProvince;
    @Column("winner_city")
    private String winnerCity;
    @Column("winner_area")
    private String winnerArea;
    @Column("winner_address")
    private String winnerAddress;
    /**
     * 中奖状态： 0 未中奖, 1中奖, 2已审核, 3已发放, 4 放弃
     */
    @Column("data_status")
    private String dataStatus;


    private String userName;
    private String goodsName;
    private String rewardName;
    private String rewardImg;
    private Integer rewardPrice;

    public Integer getWinId() {
        return winId;
    }

    public void setWinId(Integer winId) {
        this.winId = winId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public UserInfo getUser() {
        return user;
    }

    public void setUser(UserInfo user) {
        this.user = user;
    }

    public Integer getRewardId() {
        return rewardId;
    }

    public void setRewardId(Integer rewardId) {
        this.rewardId = rewardId;
    }

    public Reward getReward() {
        return reward;
    }

    public void setReward(Reward reward) {
        this.reward = reward;
    }

    public Date getWinTime() {
        return winTime;
    }

    public void setWinTime(Date winTime) {
        this.winTime = winTime;
    }

    public Integer getShareCount() {
        return shareCount;
    }

    public void setShareCount(Integer shareCount) {
        this.shareCount = shareCount;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getRewardName() {
        return rewardName;
    }

    public void setRewardName(String rewardName) {
        this.rewardName = rewardName;
    }

    public String getWinnerName() {
        return winnerName;
    }

    public void setWinnerName(String winnerName) {
        this.winnerName = winnerName;
    }

    public String getWinnerPhone() {
        return winnerPhone;
    }

    public void setWinnerPhone(String winnerPhone) {
        this.winnerPhone = winnerPhone;
    }

    public String getWinnerProvince() {
        return winnerProvince;
    }

    public void setWinnerProvince(String winnerProvince) {
        this.winnerProvince = winnerProvince;
    }

    public String getWinnerCity() {
        return winnerCity;
    }

    public void setWinnerCity(String winnerCity) {
        this.winnerCity = winnerCity;
    }

    public String getWinnerArea() {
        return winnerArea;
    }

    public void setWinnerArea(String winnerArea) {
        this.winnerArea = winnerArea;
    }

    public String getWinnerAddress() {
        return winnerAddress;
    }

    public void setWinnerAddress(String winnerAddress) {
        this.winnerAddress = winnerAddress;
    }

    public String getDataStatus() {
        return dataStatus;
    }

    public void setDataStatus(String dataStatus) {
        this.dataStatus = dataStatus;
    }

    public String getRewardImg() {
        return rewardImg;
    }

    public void setRewardImg(String rewardImg) {
        this.rewardImg = rewardImg;
    }

    public Integer getRewardPrice() {
        return rewardPrice;
    }

    public void setRewardPrice(Integer rewardPrice) {
        this.rewardPrice = rewardPrice;
    }

    @Override
    public String toString() {
        return "WinnerLog{" +
                "winId=" + winId +
                ", goodsId=" + goodsId +
                ", goods=" + goods +
                ", userId=" + userId +
                ", user=" + user +
                ", rewardId=" + rewardId +
                ", reward=" + reward +
                ", winTime=" + winTime +
                ", shareCount=" + shareCount +
                ", winnerName=" + winnerName +
                ", winnerPhone=" + winnerPhone +
                ", winnerProvince=" + winnerProvince +
                ", winnerCity=" + winnerCity +
                ", winnerArea=" + winnerArea +
                ", winnerAddress=" + winnerAddress +
                ", dataStatus=" + dataStatus +
                '}';
    }
}
